/**
 * file
 */
package com.tdkj.action.front.bbs;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionContext;
import com.tdkj.action.BaseAction;
import com.tdkj.model.user.BeanUser;
import com.tdkj.util.PublicConfing;

/**
 * 
 * FileName: BBSAction.java
 * 
 * @Description: TODO(用一句话描述该文件做什么)
 * 
 *               All rights Reserved, Designed By ZTE-ITS
 * 
 *               Copyright: Copyright(C) 2010-2011
 * 
 *               Company 天成科技有限公司
 * 
 * @author: 李兴建
 * 
 * @version V1.0
 * 
 *          Createdate: 2012-8-11 下午03:05:35
 * 
 * 
 * 
 *          Modification History:
 * 
 *          Date Author Version Discription
 * 
 * 
 * 
 * 
 * 
 *          
 *          ----------------------------------------------------------------------
 *          -------------
 * 
 *          2012-8-11 李兴建 1.0 1.0
 * 
 *          Why & What is modified: <修改原因描述>
 */
public class BBSAction extends BaseAction {

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Override
	public String execute() throws Exception {
		BeanUser user = null;
		HttpServletRequest request = null;
		user = this.getCurrentUser();
		if (null != user) {
			HttpServletResponse response = ServletActionContext.getResponse();

			response.sendRedirect("../../xnky_bbs/perform.jsp?act=lgn&userID="+user.getUserLoginName()+"&pwd="+user.getUserpassword().toLowerCase());
			return null;

		}
		return SUCCESS;
	}

}
